<div id="Keyword-substitution"></div>
<div class="header">
<p>
Next: [[cvs: Tracking third-party sources#Tracking third-party sources|Tracking sources]], Previous: [[cvs: Revision management#Revision management|Revision management]], Up: [[cvs#Top|Top]] &nbsp; |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p>
</div>

----

<div id="Keyword-substitution-1"></div>
== Keyword substitution ==
<div id="index-Keyword-substitution"></div>
<div id="index-Keyword-expansion"></div>
<div id="index-Identifying-files"></div>


As long as you edit source files inside a working
directory you can always find out the state of
your files via &lsquo;<code>cvs status</code>&rsquo; and &lsquo;<code>cvs log</code>&rsquo;.
But as soon as you export the files from your
development environment it becomes harder to identify
which revisions they are.

<small>CVS</small> can use a mechanism known as <em>keyword
substitution</em> (or <em>keyword expansion</em>) to help
identifying the files.  Embedded strings of the form
<code>$<var>keyword</var>$</code> and
<code>$<var>keyword</var>:&hellip;$</code> in a file are replaced
with strings of the form
<code>$<var>keyword</var>:<var>value</var>$</code> whenever you obtain
a new revision of the file.

 [[cvs: Keyword List#Keyword List|&bull; Keyword list]]::                   Keywords
 [[cvs: Using keywords#Using keywords|&bull; Using keywords]]::                 Using keywords
 [[cvs: Avoiding substitution#Avoiding substitution|&bull; Avoiding substitution]]::          Avoiding substitution
 [[cvs: Substitution modes#Substitution modes|&bull; Substitution modes]]::             Substitution modes
 [[cvs: Configuring Keyord Expansion#Configuring Keyord Expansion|&bull; Configuring keyword expansion]]::  Configuring keyword expansion
 [[cvs: Problems with the $ Log$ keyword.#Problems with the $ Log$ keyword.|&bull; Log keyword]]::                    Problems with the $<i></i>Log$ keyword.

This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>].
